package com.oa.pm.controller;

import com.joneying.common.web.response.Resp;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

@RequestMapping("/signIn")
@RestController
public class SignInController {

    @RequestMapping("/server/date")
    public Resp findServerDate(){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
        Date date = new Date();
        return new Resp().success(dateFormat.format(date));
    }

}
